<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/comonFoodSelect.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增食品价格</title>
	<script type="text/javascript">
     function  custom(obj){
		 $("#foodId").val(obj.foodId);
		 $("#foodName").val(obj.foodName);
		 $("#remarks").val(obj.remarks);
	 }
	</script>
	<script type="text/javascript">
		$(document).ready(function(){
            checkNumber("purchasePrice");
			checkNumber("salePrice");
		});
	</script>

	<script type="text/javascript" src="${ctx}/js/checkFrom.js"></script>
</head>
<body>
<a href="${ctx}/price/list">返回食品价格列表</a>
<hr />
<form action="${ctx }/price/save" method="post">
<table style="width: 300px;margin: auto;">

	<tr>
		<td>食品ID</td>
		<td><input type="text" name="foodId" id="foodId" readonly/></td>
	</tr>
	<tr>
		<td>食品名称</td>
		<td><input type="text" name="foodName" required id="foodName" readonly/></td>
	</tr>
	<tr>
		<td>采购价格</td>
		<td><input type="text" name="purchasePrice" required id="purchasePrice"/></td>
	</tr>
	<tr>
		<td>销售价格</td>
		<td><input type="text" name="salePrice" required id="salePrice"/></td>
	</tr>
	<tr>
		<td>备注</td>
		<td><input type="text" name="remarks" id="remarks"/></td>
	</tr>

	<td></td>
	<td><input type="submit" value="保存"> </td>
</tr>
</table>
</form>
</body>
</html>